package cn.autowired.exam.service;

import cn.autowired.exam.entity.TeacherFreeTime;
import com.baomidou.mybatisplus.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author cq
 * @since 2018-05-25
 */
public interface TeacherFreeTimeService extends IService<TeacherFreeTime> {
    /**
     * 根据老师id和空闲日期查找当天的空闲时间段
     * @param teacherId
     * @param freeDate
     * @return
     */
	TeacherFreeTime selectByTeacherIdAndFreeDate(Integer teacherId,String freeDate);

    /**
     * 根据老师id和空闲日期区间寻找空闲时间
     * @param teacherId
     * @param startDate
     * @param endDate
     * @return
     */
	List<TeacherFreeTime> selectByTeacherBetweenDate(Integer teacherId,String startDate,String endDate);
}
